home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / dkbuts.zip / IBMDATA.MAK < prev    next >
Makefile  |  1991-05-16  |  2KB  |  124 lines

  1. # IBM Makefile for DKB Utilities by David Buck and Aaron Collins
  2. # This file is released to the public domain.
  3. #
  4. # Note for the IBM Version:
  5. # Uses system environment variable LIB for the linker's .LIB file path.
  6. # (Example:  Set LIB=C:\LIB)  The system environment variable CMODEL also
  7. # may be defined for the memory model of the compiler.  We are using the
  8. # "Large" memory model (Example Set CMODEL=L).  If you don't want to
  9. # use the DOS environment variables, uncomment the following two lines:
  10. #
  11. # MAKE Macros and Such...
  12. #
  13.  
  14. #CMODEL    =L
  15. #LIB    =c:\lib
  16. CC    =cl
  17. BC    =bc
  18.  
  19. LINKER    =link /PACKCODE /FARCALL /EXEPACK
  20.  
  21. # Uncomment for 8086/8088 instruction set usage
  22. #
  23. CFLAGS    =/A$(CMODEL) /Gmsr /FPi /H32 /c /J
  24.  
  25. # Uncomment for 80186/80268 (incl. V20!) instruction set usage    [/Gmsr2]
  26. #
  27. #CFLAGS    =/A$(CMODEL) /Gmsr2 /FPi87 /H32 /c /J
  28.  
  29. # If you have OS/2 to compile under, fix directory name and add this option
  30. # to CFLAGS above...
  31. #
  32. # /B2 C:\msc\c2l.exe
  33. #
  34.  
  35. # MS's NMAKE implicit rules for making an .OBJ file from a .C file...
  36. #
  37. .c.obj :
  38.  $(CC) $(CFLAGS) /Oaxz $*.c
  39.  
  40. # MS's NMAKE implicit rules for making an .OBJ file from a .BAS file...
  41. # (unless the "ON ERROR..." handler switches /e or /x are needed...)
  42. #
  43. .bas.obj :
  44.  $(BC) $* /o;
  45.  
  46. #
  47.  
  48. all: sa2dkb.exe twister.exe dxf2dkb.exe 3d2-dkb.exe chem2dkb.exe shellgen.exe \
  49.      lissajou.exe splitdkb.exe diamond.exe gear.exe tce.exe font2dat.exe \
  50.      anima.exe star.exe
  51.  
  52. sa2dkb.exe : sa2dkb.obj
  53.     $(LINKER) sa2dkb;
  54.  
  55. sa2dkb.obj : sa2dkb.c
  56.  
  57. twister.exe : twister.obj
  58.     $(LINKER) twister;
  59.         
  60. twister.obj : twister.c
  61.  
  62. dxf2dkb.exe : dxf2dkb.obj
  63.     $(LINKER) dxf2dkb;
  64.  
  65. dxf2dkb.obj : dxf2dkb.c
  66.  
  67. 3d2-dkb.exe : 3d2-dkb.obj
  68.     $(LINKER) 3d2-dkb;
  69.  
  70. 3d2-dkb.obj : 3d2-dkb.c
  71.  
  72. chem2dkb.exe : chem2dkb.obj
  73.     $(LINKER) chem2dkb;
  74.  
  75. chem2dkb.obj : chem2dkb.bas
  76.  
  77. shellgen.exe : shellgen.obj
  78.     $(LINKER) shellgen;
  79.  
  80. shellgen.obj : shellgen.bas
  81.  
  82. lissajou.exe : lissajou.obj
  83.     $(LINKER) lissajou;
  84.  
  85. lissajou.obj : lissajou.bas
  86.     $(BC) $* /e/o;
  87.  
  88. splitdkb.exe : splitdkb.obj
  89.     $(LINKER) splitdkb;
  90.  
  91. splitdkb.obj : splitdkb.bas
  92.  
  93. diamond.exe : diamond.obj
  94.     $(LINKER) diamond;
  95.  
  96. diamond.obj : diamond.bas
  97.  
  98. gear.exe : gear.obj
  99.     $(LINKER) gear;
  100.  
  101. gear.obj : gear.bas
  102.  
  103. tce.exe : tce.obj
  104.     $(LINKER) tce;
  105.  
  106. tce.obj : tce.bas
  107.     $(BC) $* /x/o;
  108.  
  109. font2dat.exe : font2dat.obj
  110.     $(LINKER) font2dat;
  111.  
  112. font2dat.obj : font2dat.bas
  113.  
  114. anima.exe : anima.obj
  115.     $(LINKER) anima;
  116.  
  117. anima.obj : anima.bas
  118.  
  119. star.exe : star.obj
  120.     $(LINKER) star;
  121.  
  122. star.obj : star.bas
  123.  
  124.